<?php 
  $colorFilter = ml_factory::load_standard_conf('op_guangColor'); 
  global $ML_COLOR , $ML_COLOR_RGB;

  $priceMap = ml_factory::load_standard_conf('priceMap');
  $priceMap = $priceMap[0];
?>
<div class="row">
  <div class="span10">
    <table style="margin: 5px;"><tbody>
      <tr>
        <td><h4>标签</h4></td>
        <td style="padding-left:10px;">
          <div class="btn-group">
            <a class="btn btn-small" href="javascript:;"><i class="icon-signal"></i><?php echo (empty($minPrice) && empty($maxPrice)) ? '全部' : ((int)$minPrice.'~'.(int)$maxPrice.'元'); ?></a>
            <a class="btn dropdown-toggle btn-small" data-toggle="dropdown" href="#"><span class="caret"></span></a>
            <ul class="dropdown-menu">
              <li><a href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", $color,$filter,$order,$type); ?>">全部</a></li>
              <?php foreach ($priceMap as $key => $value) { ?>
              <li><a href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,$value['max'],$value['min'], $color,$filter,$order,$type); ?>"><?php echo (int)$value['min']; ?>~<?php echo (int)$value['max']; ?>元</a></li>
              <?php } ?>
            </ul>
          </div>
        </td>
        <td style="padding-left:10px;">
          <div class="btn-group">
            <a class="btn btn-small <?php echo $sex==ML_SEX_ALL ? 'active' : '';?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", $color,$filter,$order,$type,ML_SEX_ALL); ?>">全部</a>
            <a class="btn btn-small <?php echo $sex==ML_SEX_BOY ? 'active' : '';?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", $color,$filter,$order,$type,ML_SEX_BOY); ?>">男</a>
            <a class="btn btn-small <?php echo $sex==ML_SEX_GIRL ? 'active' : '';?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", $color,$filter,$order,$type,ML_SEX_GIRL); ?>">女</a>
          </div>
        </td>
        <td style="padding-left:10px;">
          <div class="btn-toolbar">
            <div class="btn-group">
              <a class="btn btn-small <?php echo $color=='' ? 'active' : '';?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", '',$filter,$order,$type); ?>">全部</a>
              <?php foreach ($colorFilter as $value) { ?>
              <a class="btn btn-small <?php echo $color==$ML_COLOR[$value] ? 'active' : '';?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name,"","", $ML_COLOR[$value],$filter,$order,$type); ?>"><span style="height:10px;background-color: <?php echo $ML_COLOR_RGB[$value]; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>
              <?php } ?>
            </div>
          </div>
        </td>
      </tr>
    </tbody></table> 
  </div>
  <!--
  <div class="span2" style="text-align: right;">
    <div class="btn-toolbar">
        <div class="btn-group">
          <a class="btn<?php if($order=='new'){echo ' disabled';} ?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name, $maxPrice,$minPrice, $color, $filter,'new',$type); ?>">最新</a>
          <a class="btn<?php if($order=='hot'){echo ' disabled';} ?>" href="<?php echo ml_tool_urlMaker::guang_filter($page_id, $name, $maxPrice,$minPrice, $color, $filter,'hot',$type); ?>">最热</a>
        </div>
    </div>
  </div>
  -->
</div>